
// 新闻文章接口都在这里
import request from '../utils/request'

// 文章列表
export const getPostAPI = (params) => {
    return request({
        method: 'GET',
        url: '/post',
        params: params,
    })
}

// 2. 搜索文章
export const getPostSearchAPI = (params) => {
    return request({
        method: 'GET',
        url: '/post_search',
        params,
    })
}

// 3. 搜索推荐
export const getPostSearchRecommendAPI = (params) => {
    return request({
        method: 'GET',
        url: '/post_search_recommend',
        params,
    })
}